[ / / / / / / / / / / / / / ] [ dir / agatha2 / animu / ausneets / b2 / choroy / dempart / freeb / vichan ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): a6b208caec62316⋯.png (17.22 KB, 1039x726, 1039:726, 141414.png) (h) (u)

[–]

 No.1065075>>1065116 >>1065127 >>1065178 >>1066408 [Watch Thread][Show All Posts]

You motherfuckers know your shit

So I am asking if someone could help me do a simple personal HTML where I put images and gifs and they'd be scattered around like so in the page, where I could see everything

And I'd want the page to scroll down automatically, as to showcase all the images I've put on display and if there's a possibility for the cycle to start from beginning in a loop

Right now I am using very bare bones version of:

<!DOCTYPE html>

<html>

<body>

<center>

<img src="C:\Users\Me\Desktop\images\1.jpg">

<img src="C:\Users\Me\Desktop\images\gif\2.gif">

<img src="C:\Users\Me\Desktop\images\3.jpg">

</body>

</html>

I can only scroll it down myself, the images are next to each other horizontally and theres huge gaps between the images, I don't know how to make them packed tight

I only know very basic code so go easy on me

 No.1065078>>1065343


 No.1065086>>1065089

File (hide): cf988bfdd3b8910⋯.png (2.37 MB, 1846x960, 923:480, 123213123121232.png) (h) (u)

I found a javascript that automatically scrolls the imagery from right to left

The problem with it is that it only shows 1 row of images and scales them to a certain size

https://pastebin.com/z0J9wz2s

Here is a pastebin for it, what should I change in order to get images to go on top of each other or at least stay in full scale before scrolling?

Here's an image as to what it looks like right now, it's scrolling at a set speed nonstop, which is what I'm looking for


 No.1065087>>1065128

fpbp

OP stop sucking dick and RTFM. w3schools.com is a great start, you can test almost everything - just hit Try it yourself and play with the code.


 No.1065089>>1065122

>>1065086

I just realized it scales to the size of the first image on the row, but then when there's a smaller image, there's huge empty spage next to it all

how can I fix this?


 No.1065094

Put your question in the sticked tech questions thread next time you faggot. Why not just make a libreoffice/word presentation? Unless you have hundreds of thousands of images you need to go through....

<So I am asking if someone could help me do a simple personal HTML where I put images and gifs and they'd be scattered around like so in the page, where I could see everything

https://github.com/drduh/python-html-gallery works but the single page has thumbnails and clicking on the thumbnails leads to the larger picture. This is for lower powered computers to be able to load a directory of millions of images. You can modify this script to work with gif and png too, but out of the box it only works with jpg. You have to modify it or convert everything to a jpeg if lazy. CTRL+ + and CTRL+ - are your friends for scroll zooming in and out along with F11 for full screen

<And I'd want the page to scroll down automatically, as to showcase all the images I've put on display and if there's a possibility for the cycle to start from beginning in a loop

Just fucking make a macro for your favorite GUI browser and scroll you fucker. Here's for xorg/linux/unix https://superuser.com/questions/787026/linux-keyboard-macro-x11 and for windows https://www.trishtech.com/2016/06/winparrot-record-and-repeat-actions-in-windows-pc/ if you use neither of those then fucking do the research yourself you faggot


 No.1065095

hundreds of thousands

hu1dre3ds of thousands

If these aren't the same theres a word filter in place for such.


 No.1065114

For scrolling you can use jQuerys scroll https://api.jquery.com/scroll/ or window.scrollTo() https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo


 No.1065116

>>1065075 (OP)

This is 8chan tech support, faggot, not /helpmewithmyhomework/. Fuck right off.


 No.1065122

>>1065089

Display thumbnails for your images that are all the same exact size. Like the image could be 4k or 1080p but the thumbnail is always 640x320 or something like that.


 No.1065127>>1065137


 No.1065128>>1065343

File (hide): 308ba6dc2db1779⋯.jpg (1.31 MB, 1200x1800, 2:3, wanttomarry.jpg) (h) (u)

>>1065087

>w3schools.com

This. I went through their tutorials, which are very good, on html and css in one day, skipping some of the "advanced" stuff, mostly on CSS, since it seemed to be of little utility. If you have the javascript you need, then that's all.


 No.1065137


 No.1065174

Use flexbox and it will be easy to do.


 No.1065178

>>1065075 (OP)

It's another one of these problems where you don't even know what you want.


 No.1065260

Reconsider having the autoscroll shit. What is the point? Let people scroll at their own pace.


 No.1065269

>I got recruited to do work

>Was asked to do work

>Wat do?

<I'll ask 8chin's /tech/


 No.1065343

>>1065078

>>1065128

/thread

OP get ready to put in some time, because although it's simple and straightforward, it can be tedious.


 No.1066275

>IT freshman being lazy about doing his homework

Heh.


 No.1066307

>only know how to solve this by making an sdl program & using imagemagick then converting it with webassembly

actually thinking in the whole html,js,css shit is actually retarded


 No.1066317

HTML? The only issue would be the scrolling from top to bottom, HTML can only handle left to right. As for the other stuff, I would make a table and use relative positions so it scales well. As for the scrolling, you could use GIF/apng but it gets heavy the more you want to achieve. Really without using CSS or javashit you are limited, interesting exercise though.


 No.1066408

>>1065075 (OP)

Have you installed Gentoo yet?


 No.1066733

no need to use javashit for this at all, you can use css animations to make the images scroll




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
22 replies | 2 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / agatha2 / animu / ausneets / b2 / choroy / dempart / freeb / vichan ][ watchlist ]